package wang.aweb.childcar.controller.api;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import wang.aweb.childcar.common.ApiRestResponse;
import wang.aweb.childcar.model.pojo.System;
import wang.aweb.childcar.service.SystemInfoService;

import java.util.Map;

@RestController
@RequestMapping("/api/sys/")
public class SysController {
    @Autowired
    private SystemInfoService systemInfoService;
    @PostMapping("getSet")
    public ApiRestResponse getSet(){
        Map info=systemInfoService.getInfo();
        return ApiRestResponse.success(info);
    }
}
